﻿using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Text;
using VOL.Entity.DomainModels;

namespace VOL.Wms.Util
{
    public class NCDeliveryComparer : IEqualityComparer<Bus_NCdelivery>
    {
        public bool Equals([AllowNull] Bus_NCdelivery x, [AllowNull] Bus_NCdelivery y)
        {
            return x.成品卷号 == y.成品卷号 && x.车牌 == y.车牌 && x.状态 == y.状态;
        }

        public int GetHashCode([DisallowNull] Bus_NCdelivery obj)
        {
            if (obj == null)
            {
                return 0;
            }
            else
            {
                return obj.ToString().GetHashCode();
            }
        }
    }
}
